﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace D6.DFS.DevUtility
{
    public sealed class AppWideData
    {

        public AppWideData()
        {
            DfsUrls = new schemaRepositories.DfsRepositoryInfoDataTable();
            DocumentumTypes = new schemaRepositories.DocumentumTypeInfoDataTable();
            CurrentKeyList = new List<int>();
        }

        public static AppWideData Instance
        {
            get
            {
                return NestedAppWideData.instance;
            }
        }

        public schemaRepositories.DfsRepositoryInfoDataTable DfsUrls;
        public schemaRepositories.DocumentumTypeInfoDataTable DocumentumTypes;
        public int CurrentDfsKey;
        public List<int> CurrentKeyList = null;

        class NestedAppWideData
        {
            // Explicit static constructor to tell C# compiler
            // not to mark type as beforefieldinit
            static NestedAppWideData()
            {
            }

            internal static readonly AppWideData instance = new AppWideData();


        }


    }
}
